/**
 * 基础路由
 * @type { *[] }
 */
export default [
    {
        path: '/',
        name: 'dashboard',
        redirect: '/home',
        meta: {
          name: '首页'
        }
      },
      // 错误路由跳转
      {
        path: '*',
        redirect: "/404",
        meta: {
          name: 'notFound'
        }
      },
      {
        path: '/home',
        name: 'home',
        meta: {
          name: '首页'
        },
        component: ()=>import('@/views/home/index.vue')
      },
      {
        path: '/login',
        name: 'login',
        meta: {
          name: '登录'
        },
        component: ()=>import('@/views/login/login.vue')
      },
      {
        path: '/401',
        name: '401',
        meta: {
          name: 'notAuth'
        },
        component: () => import('@/views/error/401.vue')
      },
      {
          path: '/404',
          name: '404',
          meta: {
            name: 'notFound'
          },
          component: () => import('@/views/error/404.vue')
      },
]
